using System;
using System.Windows.Forms;
using NHunspellComponent.Spelling;

namespace TestingApplication
{
   public partial class TestForm : Form
   {
      public TestForm()
      {
         InitializeComponent();
         this.spellingWorker1 = new NHunspellComponent.Spelling.SpellingWorker();
         this.spellingWorker1.SetLanguage("it_IT");
         this.spellingWorker1.Editor = this.customPaintRichText21;

         this.customPaintRichText21.AllowDrop = true;
         this.customPaintRichText21.EnableAutoDragDrop = false;
         this.customPaintRichText21.DragOver += new DragEventHandler(customPaintRichText21_DragOver);
         this.customPaintRichText21.DragEnter += new DragEventHandler(customPaintRichText21_DragEnter);
         this.customPaintRichText21.DragDrop += new DragEventHandler(customPaintRichText21_DragDrop);

         this.richTextBox1.AllowDrop = true;
         this.richTextBox1.DragEnter += new DragEventHandler(richTextBox1_DragEnter);
         this.richTextBox1.DragDrop += new DragEventHandler(richTextBox1_DragDrop);
         this.richTextBox1.DragOver += new DragEventHandler(richTextBox1_DragOver);
         this.richTextBox1.EnableAutoDragDrop = false;

      }

      void customPaintRichText21_DragOver(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      void richTextBox1_DragOver(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      void customPaintRichText21_DragDrop(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      void customPaintRichText21_DragEnter(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      void richTextBox1_DragEnter(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      void richTextBox1_DragDrop(object sender, DragEventArgs e)
      {
          throw new NotImplementedException();
      }

      private void bCkeckAll_Click(object sender, EventArgs e)
      {
         NHunspellWrapper.Instance.ShowCheckAllWindow();
      }

      private void chAutoSpelling_CheckedChanged(object sender, EventArgs e)
      {
         customPaintRichText21.IsSpellingAutoEnabled = chAutoSpelling.Checked;
      }
   }
}